const _products = [
  { 'id': 1, 'title': 'iphone13', 'price': 8000, 'inventory': 2 },
  { 'id': 2, 'title': 'iphone12', 'price': 5000, 'inventory': 10 },
  { 'id': 3, 'title': 'iphone11', 'price': 3000, 'inventory': 5 }
]

function getProducts() {
  return new Promise((resovle, reject) => {
    setTimeout(() => {
      resovle(_products)
    }, 1000)
  })
}

export default {
  getProducts
}